a = [[0,1], [3,4], [1,2]]
a.sort(key=lambda x:x[1])
print(a)